<div class="intro-cartasur">
<h3>Add a New Location</h3>
  Use this page to add a new location
</div>

<%= error_messages_for :visited %>
<% if flash[:error] %>
  <div style="color: #a11328;" class="error"><%= flash[:error] %></div>
<% end %>
<div id="page">
  <% if flash[:alert] %>
      <p class="flash-error"><%= flash[:alert] %></p>
  <% end %>
  <% if flash[:notice] %>
      <p class="flash-notice"><%= flash[:notice] %></p>
  <% end %>
  <%= yield %>
</div>
<p>
<%= form_for  @location, :url => { :action => "create" } do |f| %>

      <%=  render "cartasur/locations/locationsform", :f => f  %>
    <p><%= submit_tag 'Save' %></p>
<% end -%>

</p>
